aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-04-18 22:07:03 +0200
committerLorenz Diener <[email protected]>2018-04-18 22:07:03 +0200
commitbc7b9defe8b72b6ab14ade6828a98f4d6e82b1de (patch)
tree6cd17b03100aa61c1d0a224771577601a1851f59 /tests/cassettes/test_status_post[Content warning-direct].yaml
parent64ec9e20987072692227d8817d9fd99d497fea5e (diff)
downloadmastodon.py-bc7b9defe8b72b6ab14ade6828a98f4d6e82b1de.tar.gz
Attempt 2 at fixing the tests for travis
Diffstat (limited to 'tests/cassettes/test_status_post[Content warning-direct].yaml')
-rw-r--r--tests/cassettes/test_status_post[Content warning-direct].yaml57
1 files changed, 57 insertions, 0 deletions
diff --git a/tests/cassettes/test_status_post[Content warning-direct].yaml b/tests/cassettes/test_status_post[Content warning-direct].yaml
index eaefb12..d5c9383 100644
--- a/tests/cassettes/test_status_post[Content warning-direct].yaml
+++ b/tests/cassettes/test_status_post[Content warning-direct].yaml
@@ -56,4 +56,61 @@ interactions:
56 X-XSS-Protection: [1; mode=block] 56 X-XSS-Protection: [1; mode=block]
57 content-length: ['2'] 57 content-length: ['2']
58 status: {code: 200, message: OK} 58 status: {code: 200, message: OK}
59- request:
60 body: status=Toot%21&visibility=direct&spoiler_text=Content+warning
61 headers:
62 Accept: ['*/*']
63 Accept-Encoding: ['gzip, deflate']
64 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
65 Connection: [keep-alive]
66 Content-Length: ['61']
67 Content-Type: [application/x-www-form-urlencoded]
68 User-Agent: [python-requests/2.9.1]
69 method: POST
70 uri: http://localhost:3000/api/v1/statuses
71 response:
72 body: {string: '{"id":"99882235439972655","created_at":"2018-04-18T20:06:01.743Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content
73 warning","visibility":"direct","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882235439972655","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882235439972655","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"reblog":null,"application":{"name":"Mastodon.py
74 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
75 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
76 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":22},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
77 headers:
78 Cache-Control: ['max-age=0, private, must-revalidate']
79 Content-Type: [application/json; charset=utf-8]
80 ETag: [W/"82d8dbfeee53c2a652f0754e8587f54f"]
81 Transfer-Encoding: [chunked]
82 Vary: ['Accept-Encoding, Origin']
83 X-Content-Type-Options: [nosniff]
84 X-Frame-Options: [SAMEORIGIN]
85 X-Request-Id: [05da1900-2d9d-488f-9608-92149fe533bf]
86 X-Runtime: ['0.425772']
87 X-XSS-Protection: [1; mode=block]
88 content-length: ['1396']
89 status: {code: 200, message: OK}
90- request:
91 body: null
92 headers:
93 Accept: ['*/*']
94 Accept-Encoding: ['gzip, deflate']
95 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
96 Connection: [keep-alive]
97 Content-Length: ['0']
98 User-Agent: [python-requests/2.9.1]
99 method: DELETE
100 uri: http://localhost:3000/api/v1/statuses/99882235439972655
101 response:
102 body: {string: '{}'}
103 headers:
104 Cache-Control: ['max-age=0, private, must-revalidate']
105 Content-Type: [application/json; charset=utf-8]
106 ETag: [W/"fa5cea1a9772db82d8d13c6d8b03c3e2"]
107 Transfer-Encoding: [chunked]
108 Vary: ['Accept-Encoding, Origin']
109 X-Content-Type-Options: [nosniff]
110 X-Frame-Options: [SAMEORIGIN]
111 X-Request-Id: [310dba7f-3b34-4c56-a2ab-a10d97ca4f40]
112 X-Runtime: ['0.111893']
113 X-XSS-Protection: [1; mode=block]
114 content-length: ['2']
115 status: {code: 200, message: OK}
59version: 1 116version: 1
Powered by cgit v1.2.3 (git 2.41.0)